import React from 'react'
import { Navigate, Route, Routes } from 'react-router-dom'
import Home from '../../views/newSandBox/home/Home'
import UserList from '../../views/newSandBox/user-manage/UserList'
import RoleList from '../../views/newSandBox/right-manage/RoleList'
import RightList from '../../views/newSandBox/right-manage/RightList'
import NoPermission from '../../views/newSandBox/noPermission/NoPermission'
import CategoriesList from '../../views/newSandBox/news-manage/CategoriesList'
import DraftList from '../../views/newSandBox/news-manage/DraftList'
import NewsList from '../../views/newSandBox/news-manage/NewsList'

export default function NewRouter() {
    return (
        <Routes>
            <Route path='/home' element={<Home />} />
            <Route path='/user-manage/list' element={<UserList />} />
            <Route path='/right-manage/role/list' element={<RoleList />} />
            <Route path='/right-manage/right/list' element={<RightList />} />
            <Route path='/news-manage/category' element={<CategoriesList />} />
            <Route path='/news-manage/draft' element={<DraftList />} />
            <Route path='/news-manage/add' element={<NewsList />} />

            {/* <Route path='/news-manage/list' element={<Home />} />
             <Route path='/audit-manage/lis' element={<Home />} /> */}
            <Route path='/' element={<Navigate to='home' replace />} />
            <Route path='*' element={<NoPermission />} />
        </Routes>
    )
}
